package com.Cychat.commons.entity.pojo;


import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;

@Data
@TableName("ai_chat_record")
public class AiChatRecord {
    @Schema(description="聊天记录ID")
    @TableId(value = "chat_id", type = IdType.AUTO)
    private Integer chatId;
    @Schema(description="用户ID")
    private Long userId;
    @Schema(description="发送方类型，1为用户，2为AI")
    private Integer senderType;
    @Schema(description="聊天内容")
    private String content;
    @Schema(description="消息发送时间")
    private Date chatTime;
    @Schema(description="会话ID")
    private String sessionId;
    @Schema(description="AI消息是否已读")
    private Integer isRead;
}